package com.xiaoyu.lingdian.service;

import java.util.List;
import com.xiaoyu.lingdian.core.mybatis.page.Page;
import com.xiaoyu.lingdian.entity.CoreAddress;

public interface CoreAddressService {

	/**
	* 添加
	* @param coreAddress
	* @return
	*/
	public boolean insertCoreAddress(CoreAddress coreAddress);

	/**
	* 修改
	* @param coreAddress
	* @return
	*/
	public boolean updateCoreAddress(CoreAddress coreAddress);

	/**
	* 删除
	* @param coreAddress
	* @return
	*/
	public boolean deleteCoreAddress(CoreAddress coreAddress);

	/**
	* 查询
	* @param coreAddress
	* @return
	*/
	public CoreAddress getCoreAddress(CoreAddress coreAddress);

	/**
	 * 根据条件分页查询
	 *
	 * @param crarsUser
	 * @param crarsName
	 * @param pageNum
	 * @param pageSize
	 * @return
	 */
	public Page<CoreAddress> findCoreAddressByCnd(String crarsUser, String crarsName, int pageNum, int pageSize);

	/**
	 * 查询我的收货地址列表
	 * 
	 * @param crarsUser
	 * @return
	 */
	public List<CoreAddress> findCoreAddressByMy(String crarsUser);
	
	/**
	* 批量删除
	* 
	* @param list
	* @return boolean
	*/
	public boolean deleteCoreAddressByCnd(List<String> list);

	
}